package com.raphon.weibo.util;

import android.os.Bundle;

import com.weibo.net.DialogError;
import com.weibo.net.Weibo;
import com.weibo.net.WeiboDialogListener;
import com.weibo.net.WeiboException;

public class AuthUtil {

	public Weibo weibo = null;

	private static String APP_KEY = "1007366622";
	private static String APP_SECRET = "cc1c1e93505bee98a070008f15737d48";
	static {
	}

	public String getAuthorizationURL() {
		weibo = Weibo.getInstance();
		weibo.setupConsumerConfig(APP_KEY, APP_SECRET);
		weibo.setRedirectUrl("http://weibo.com");
		// weibo.authorize(AuthActivity.this, new AuthDialogListener());
		return null;
	}

	class AuthDialogListener implements WeiboDialogListener {

		@Override
		public void onComplete(Bundle values) {
			// TODO Auto-generated method stub

		}

		@Override
		public void onWeiboException(WeiboException e) {
			// TODO Auto-generated method stub

		}

		@Override
		public void onError(DialogError e) {
			// TODO Auto-generated method stub

		}

		@Override
		public void onCancel() {
			// TODO Auto-generated method stub

		}

	}
}
